{template 'common/header'}
<ul class="we7-page-tab"></ul>
<div class="main">
	<table class="table we7-table table-hover site-list" id="system-info" ng-controller="systemInfoCtrl" ng-cloak>
		<tr>
			<th colspan="2" class="text-left">系统信息</th>
		</tr>
		<tr>
			<td class="text-left">微擎程序版本</td>
			<td class="text-left">微 擎 {php echo IMS_VERSION;} Release {php echo IMS_RELEASE_DATE;} &nbsp; &nbsp;
				<a href="http://www.w7.cc" target="_blank" style="color: #428bca;">查看最新版本</a>
			</td>
		</tr>
		<tr>
			<td class="text-left">产品系列</td>
			<td class="text-left">{$info['family']}</td>
		</tr>
		{if 'display' == $do}
		<tr>
			<td class="text-left">服务器系统</td>
			<td class="text-left">{$info['os']}</td>
		</tr>
		<tr>
			<td class="text-left">PHP版本 </td>
			<td class="text-left">PHP Version {$info['php']}</td>
		</tr>
		<tr>
			<td class="text-left">服务器软件</td>
			<td class="text-left">{$info['sapi']}</td>
		</tr>
		<tr>
			<td class="text-left">服务器 MySQL 版本</td>
			<td class="text-left">{$info['mysql']['version']}</td>
		</tr>
		<tr>
			<td class="text-left">上传许可</td>
			<td class="text-left">{$info['limit']}</td>
		</tr>
		<tr>
			<td class="text-left">当前数据库尺寸</td>
			<td class="text-left">
				<a href="javascript:;" id="database-size" ng-click="databaseSize()" style="color: #428bca;" >{{ dbcontent }}</a>
			</td>
		</tr>
		<tr>
			<td class="text-left">当前附件根目录</td>
			<td class="text-left">{$info['attach']['url']}</td>
		</tr>
		<tr>
			<td class="text-left">当前附件尺寸</td>
			<td class="text-left">
				<a href="javascript:;" id="attach-size" ng-click="attachSize()" style="color: #428bca;" >{{ content }}</a>
			</td>
		</tr>
		{/if}
	</table>
	{if $_W['isfounder']}
	<table class="table we7-table table-hover site-list">
		<col width="150px" />
		<col width="" />
		<th colspan="2" class="text-left">微擎开发团队</th>
		<tr>
			<td class="text-left">版权所有</td>
			<td>
				<a href="http://www.w7.cc/" target="_blank" style="color: #428bca;"><b>{$info['company']}</b></a>
			</td>
		</tr>
		<tr>
			<td class="text-left">Team 成员</td>
			<td class="text-left">
				{loop $info['developers'] $developer}
				<a href="javascript:;" class="lightlink2 smallfont" style="color: #428bca;">{$developer}</a>; &nbsp;
				{/loop}
				<br /><br />
				{loop $info['operators'] $operator}
				<a href="javascript:;" class="lightlink2 smallfont" style="color: #428bca;">{$operator}</a>; &nbsp;
				{/loop}
			</td>
		</tr>
		<tr>
			<td class="text-left">官方交流群</td>
			<td>
				<a target="_blank" href="{$info['exchange_group']['link']}" style="color: #428bca;">{$info['exchange_group']['title']}</a>
			</td>
		</tr>
		<tr>
			<td class="text-left">相关链接</td>
			<td>
				<a href="https://www.w7.cc/" class="lightlink2" target="_blank" style="color: #428bca;">公司网站</a>&nbsp;&nbsp;
				<a href="https://market.w7.cc/w7system" class="lightlink2" target="_blank" style="color: #428bca;">购买授权</a>&nbsp;&nbsp;
				<a href="https://s.w7.cc/" class="lightlink2" target="_blank" style="color: #428bca;">更多模块</a>&nbsp;&nbsp;
				<a href="https://wiki.w7.cc/chapter/35?id=370" class="lightlink2" target="_blank" style="color: #428bca;">文档</a>&nbsp;&nbsp;
			</td>
		</tr>
	</table>
	{/if}
	{if 'bi' == $do}
	<table class="table we7-table table-hover site-list">
		<tr>
			<th colspan="2" class="text-left">其他信息</th>
		</tr>
		<tr>
			<td class="text-left">服务后台用户数量<span class="color-gray">（单位:个）</span></td>
			<td class="text-left">{php echo $other_info['users']}</td>
		</tr>
		<tr>
			<td class="text-left">所有平台账号下的服务会员数量<span class="color-gray">（单位:个）</span></td>
			<td class="text-left">{$other_info['members']}</td>
		</tr>
		<tr>
			<td class="text-left">服务第三方账号数量<span class="color-gray">（单位:个）</span></td>
			<td class="text-left">
				<span>{$other_info['accounts']['sum']}</span>
				<span class="color-gray">
				（其中含:
				{loop $other_info['accounts']['type_sum'] $item}
					<span>{$item['type_name']}</span>
					<span>{$item['sum']};</span>
				{/loop}）
				</span>
			</td>
		</tr>
		<tr>
			<td class="text-left">支付功能产生的交易总额<span class="color-gray">（单位:元）</span></td>
			<td class="text-left">{$other_info['fee']}</td>
		</tr>
	</table>
	{/if}
	<script type="text/javascript">
		angular.module('systemApp').value('config', {
			'get_attach_size_url' : "{php echo url('system/systeminfo', array('do' => 'get_attach_size'))}",
			'get_database_size_url' : "{php echo url('system/systeminfo', array('do' => 'get_database_size'))}"
		});
		angular.bootstrap($('#system-info'), ['systemApp']);
	</script>
</div>
{template 'common/footer'}
